<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/common.html::common_css">
</head>
<script type="text/javascript" th:src="@{/static/js/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/static/js/jquery-3.1.1.js}"></script>

<script type="text/javascript" th:src="@{/static/js/examineadd.js}"></script>
<body>
<div th:replace="common/admin_common.html::common_sidebar"></div>
<div class="page">
    <div th:replace="common/admin_common.html::common_navbar"></div>
    <!-- Breadcrumb-->
    <div class="breadcrumb-holder">
        <div class="container-fluid">
            <ul class="breadcrumb">
                <li class="breadcrumb-item"><a th:href="@{/admin/admin_index.html}">主页</a></li>
                <li class="breadcrumb-item"><a th:href="@{/admin/examinee_manage.html}">考生管理</a></li>
                <li class="breadcrumb-item active">添加考生信息</li>
            </ul>
        </div>
    </div>
    <section>
        <div class="container-fluid">
            <!-- Page Header-->
            <header>
                <h1 class="h3 display">添加考生信息</h1>
            </header>
            <div class="row">
                <div class="col-lg-6" style="flex:100%;max-width: 100%">
                    <form class="text-left form-validate" th:action="@{/admin/examinee_add.html}" method="post">
                        <div class="form-group-material">
                            <input id="registernumber" type="text" style="background-color: #fff !important;"
                                   name="registerNumber" class="input-material">
                            <label for="registernumber" class="label-material">考生号</label>
                            <span id="usernameInfo"></span>
                        </div>
                        <div class="form-group-material">
                            <input id="registerusername" type="text" style="background-color: #fff !important;"
                                   name="registerUsername" class="input-material">
                            <label for="registerusername" class="label-material">姓名</label>
                            <div class="invalid-feedback">请输入姓名</div>
                        </div>
                        <div class="form-group-material">
                            <label for="registerapartment" class="label-material" style="color: #aaaaaa;">部门</label>
                            <select id="registerapartment" name="registerApartment" class="form-control">
                                <option></option>
                                <option th:each="apartments:${apartments}" th:value="${apartments.apartmentid}" th:text="${apartments.apartmentname}"></option>
                            </select>
                            <div class="invalid-feedback">请选择部门</div>
                        </div>
                        <div class="form-group terms-conditions text-center">
                            <label class="label-material" style="color: #aaaaaa;">性别</label>
                            <input name="registerGender" class="form-control-custom is-invalid" id="register-man"
                                   aria-invalid="true" aria-describedby="registerAgree-error" required="" type="radio"
                                   value="1" data-msg="请选择你的性别" checked="checked">
                            <label for="register-man">男</label>
                            <input name="registerGender" class="form-control-custom is-invalid" id="register-woman"
                                   aria-invalid="true" aria-describedby="registerAgree-error" required="" type="radio"
                                   value="0" data-msg="请选择你的性别">
                            <label for="register-woman">女</label>
                        </div>
                        <div class="form-group-material">
                            <input id="registerpassword" type="password" name="registerPassword" class="input-material">
                            <label for="registerpassword" class="label-material">密码</label>
                            <div class="invalid-feedback">密码不能为空</div>
                        </div>
                        <div class="form-group-material">
                            <input id="registerrepassword" type="password" name="registerRePassword"
                                   class="input-material">
                            <label for="registerrepassword" class="label-material">确认密码</label>
                            <div class="invalid-feedback">密码不一致</div>
                        </div>
                        <div class="form-group text-center">
                            <input id="register" style="border-radius: 4px;" type="submit" value="添加" class="btn btn-primary">
                            <a th:href="@{/admin/examinee_manage.html}"
                               type="button" class="btn btn-warning m-b-10 m-1-5"
                               style="border-radius: 4px;margin-left: 50px">返回</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
    <div th:replace="common/common.html::common_footer"></div>
</div>
<div th:replace="common/common.html::common_js">
</div>
</body>
</html>